﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductInStockList.aspx.cs"
     Inherits="BySoft.Web.Site.ProductStock.ProductInStockList" MasterPageFile="~/MastePage/SubEmptyMaster.Master" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="EmptyMasteCPH" runat="server" ID="cphContent">
    <script language="javascript" type="text/javascript">

    </script>
    <h1 class="tit">成品 >> 成品入库</h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <%--查询条件--%>
            <div class="searchTable">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                       
                        <th width="5%">制造号码：
                        </th>
                        <td width="30%">
                            <asp:TextBox ID="txtWorkOrderNo" runat="server" CssClass="text ui-widget-content ui-corner-all"></asp:TextBox>
                        </td>   
                        <th width="5%">产品编号：
                        </th>
                        <td width="30%">
                            <asp:TextBox ID="txtProductID" runat="server" CssClass="text ui-widget-content ui-corner-all"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                      <th >号码：
                        </th>
                        <td >
                            <asp:TextBox ID="txtBillID" runat="server" CssClass="text ui-widget-content ui-corner-all"></asp:TextBox>
                        </td>  
                        <th width="5%">日期：
                        </th>
                        <td width="30%">
                            <input type="text" id="cpFromDateS" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                readonly="true" style="width: 85px" class="Wdate" runat="server" />~
                            <input type="text" id="cpEndDateS" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                readonly="true" style="width: 85px" class="Wdate" runat="server" />
                        </td>
                    </tr>
                </table>
                <div class="btnStylef">
                    <label class="btnStyleb png_bg">
                        <asp:Button Text="查询" runat="server" ID="btnSearch" OnClick="btnSearch_Click" class="png_bg" />
                    </label>
                    <label class="btnStylec png_bg">
                        <input type="button" runat="server" id="btnAdd" value="新增" validationgroup="gSubmit" onclick="window.location = 'ProductInStockAdd.aspx'"
                            class="png_bg" /></label>
                </div>
            </div>
            <%--列表--%>
            <div class="tableStyle">
                <div class="divscroll">
                    <asp:SGridView runat="server" ID="grdResult" ShowActionToolBar="false" AutoGenerateColumns="false"
                        Width="100%" AllowCascade="false" OnRowDataBound="grdResult_RowDataBound" OnRowCommand="grdResult_RowCommand"
                        DataKeyNames="Status">
                        <Columns>
                            <asp:BoundField DataField="BillID" HeaderText="表单编号" />
                            <asp:BoundField DataField="BillDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="日期" />
                            <asp:BoundField DataField="WorkOrderNo" HeaderText="制造号码" /> 
                             <asp:BoundField DataField="ProductID" HeaderText="产品编号" />
                            <asp:BoundField DataField="ProductName" HeaderText="产品名称" />
                            <asp:BoundField DataField="Specifications" HeaderText="规格" />
                            <asp:BoundField DataField="Unit" HeaderText="单位" />
                            <asp:BoundField DataField="Nums" HeaderText="入库数量" />
                            <asp:BoundField DataField="ScheduleNum" HeaderText="排程数量" />
                            <asp:BoundField DataField="ScheduleID" HeaderText="排程单号" />
                           
                        
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    查看
                                </HeaderTemplate>
                                <HeaderStyle Width="35px" />
                                <ItemTemplate>
                                    <asp:ImageButton CommandName="viewdata" CommandArgument='<%#Eval("BillID")%>'
                                        ImageUrl="../App_Themes/Common_CSS/images/GridDetail.gif" runat="server" ID="ibtnView" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderStyle Width="35px" />
                                <HeaderTemplate>
                                    编辑
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:ImageButton CommandName="edi" CommandArgument='<%#Eval("BillID")%>' ImageUrl="../App_Themes/Common_CSS/images/GridEdit.gif"
                                        runat="server" ID="ibtnEdi" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderStyle Width="35px" />
                                <HeaderTemplate>
                                    删除
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:ImageButton ImageUrl="../App_Themes/Common_CSS/images/delete_small.gif" runat="server"
                                        ID="ibtnDel" />
                                    <asp:Button ID="btnDel" runat="server" CssClass="Hidden" CommandArgument='<%#Eval("BillID")%>'
                                        CommandName="del" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:SGridView>
                </div>
                <div style="padding-top: 5px" align="right">
                    <cc1:PagingControl ID="pcData" runat="server" OnPageIndexClick="pcData_PageIndexClick" />
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

